import * as ActionTypes from "./constant";

export const plusAction = (data) => ({ type: ActionTypes.PLUS, data });
export const minusAction = (data) => ({ type: ActionTypes.MINUS, data });
export const plusAsyncAction = (data, time) => {
    return (dispatch) => {
        setTimeout(() => {
            dispatch(plusAction(data));
        }, time);
    };
};
export const minusAsyncAction = (data, time) => {
    return (dispatch) => {
        setTimeout(() => {
            dispatch(minusAction(data));
        }, time);
    };
};
